PATHMac OS 8 and 9 Developer Documentation > Networking and Communications > URL Access Manager >

Transferring Files With the URL Access Manager


URLGetError

Gets the error code that caused a download or upload operation to fail.

OSStatus URLGetError (
                     URLReference urlRef,
                     OSStatus* urlError);
urlRef
A reference of type URLReference that identifies the URL for which the error code is to be obtained.
urlError
A pointer to a value of type OSStatus . On return, urlError contains the first nontrivial error the URL encountered. A nontrivial error is an error that cannot be recovered from and that caused the download or upload to fail.
function result
A result code or a protocol-specific error code. For a list of possible result codes, see Result Codes .

DISCUSSION

The URLGetError function obtains the error code that caused a download or upload operation to fail. The error code may be a system error code, a protocol-specific error code, or one of the error codes listed in Result Codes .


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)